# coding=utf-8
import os
from multiprocessing import Pool
from time import sleep


def func1(name):
    print(f"打印当前进程的id:{os.getpid()},{name}")
    sleep(2)
    return name


if __name__ == '__main__':
    with Pool(5) as pool:
        args = pool.map(func1, ("sxt1,", "sxt2,", "sxt3,", "sxt4,", "sxt5,", "sxt6,", "sxt7,", "sxt8,"))
        for a in args:
            print(a)
